From: Carlos Soriano Date: Tue, 2 Sep 2014 21:24:19 +0000 (+0200) Subject: iconGrid: Fix a typo X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2197 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=db76fb8ff93180f8118d2e5c00dce7a18c72ff8a;p=gnome-shell.git iconGrid: Fix a typo It was making icons of the spring animation going/returning to the wrong position of the dash icon. --- diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index cd2917358..0fc628ec2 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -519,7 +519,7 @@ const IconGrid = new Lang.Class({ actorClone.set_size(width, height); let scaleX = sourceScaledWidth / width; let scaleY = sourceScaledHeight / height; - let [adjustedSourcePositionX, adjustedSourcePositionY] = [sourceCenterX - sourceScaledWidth / 2, sourceY - sourceScaledHeight / 2]; + let [adjustedSourcePositionX, adjustedSourcePositionY] = [sourceCenterX - sourceScaledWidth / 2, sourceCenterY - sourceScaledHeight / 2]; // Defeat onComplete anonymous function closure let isLastItem = index == actors.length - 1;